gtk4.git
4 years agofontbutton: Pass the fontmap to the dialog
Matthias Clasen [Mon, 3 Jan 2022 02:35:00 +0000 (21:35 -0500)]
fontbutton: Pass the fontmap to the dialog

4 years agofontchooser: Cosmetics
Matthias Clasen [Mon, 3 Jan 2022 02:34:05 +0000 (21:34 -0500)]
fontchooser: Cosmetics

Use harfbuzz api to format variations and features.
That matches what pango uses to parse them.

4 years agofontchooser: Use new hb api
Matthias Clasen [Sun, 2 Jan 2022 17:03:52 +0000 (12:03 -0500)]
fontchooser: Use new hb api

Use hb_font_get_var_coords_design if we have it.
This should fix our handling of fonts with AVAR.

4 years agoMerge branch 'wip/antoniof/expression-autocleanup' into 'main'
Matthias Clasen [Sun, 2 Jan 2022 17:49:49 +0000 (17:49 +0000)]
Merge branch 'wip/antoniof/expression-autocleanup' into 'main'

gtk: Define the GtkExpression autocleanup func

See merge request GNOME/gtk!4319

4 years agogtk: Define the GtkExpression autocleanup func
António Fernandes [Sun, 2 Jan 2022 17:49:48 +0000 (17:49 +0000)]
gtk: Define the GtkExpression autocleanup func

4 years agoMerge branch 'ebassi/issue-4576' into 'main'
Matthias Clasen [Sun, 2 Jan 2022 01:12:53 +0000 (01:12 +0000)]
Merge branch 'ebassi/issue-4576' into 'main'

Update the accessible description of MenuButton

Closes #4576

See merge request GNOME/gtk!4317

4 years agoMerge branch 'radioactiveman-main-patch-13472' into 'main'
Matthias Clasen [Sun, 2 Jan 2022 00:51:43 +0000 (00:51 +0000)]
Merge branch 'radioactiveman-main-patch-13472' into 'main'

texture: Fix typo in error message

See merge request GNOME/gtk!4311

4 years agoMerge branch 'wip-fontchooser-tewaks' into 'main'
Matthias Clasen [Sun, 2 Jan 2022 00:50:57 +0000 (00:50 +0000)]
Merge branch 'wip-fontchooser-tewaks' into 'main'

Revert "fontchoserwidget: Do our own face filtering"

See merge request GNOME/gtk!4314

4 years agoUpdate the accessible description of MenuButton
Emmanuele Bassi [Sun, 2 Jan 2022 00:35:53 +0000 (00:35 +0000)]
Update the accessible description of MenuButton

We update the labelled-by relation, but we never update the described-by
one.

Fixes: #4576
4 years agofontchooser: Speed up fature examples
Matthias Clasen [Fri, 31 Dec 2021 14:17:42 +0000 (09:17 -0500)]
fontchooser: Speed up fature examples

We were doing unnecessary work here, which could
get really slow with some fonts. Just compute
the reverse charmap once and reuse it.

4 years agoRevert "fontchooserwidget: Revise handling of named instances"
Matthias Clasen [Sat, 1 Jan 2022 20:35:31 +0000 (15:35 -0500)]
Revert "fontchooserwidget: Revise handling of named instances"

This reverts commit 2dc56a6e9ba9ec6fb430e9181968fea08367f9ff.

This wasn't ready yet.

4 years agoRevert "fontchoserwidget: Do our own face filtering"
Matthias Clasen [Sat, 1 Jan 2022 20:35:23 +0000 (15:35 -0500)]
Revert "fontchoserwidget: Do our own face filtering"

This reverts commit b7b6c147f9aba32047ac157e825d5517ac92a4ed.

This was premature.

4 years agoMerge branch 'bilelmoussaoui/g-i' into 'main'
Emmanuele Bassi [Sat, 1 Jan 2022 20:22:18 +0000 (20:22 +0000)]
Merge branch 'bilelmoussaoui/g-i' into 'main'

gdk: add missing nullable annotations

See merge request GNOME/gtk!4310

4 years agogtk: mark few GtkPrinterSettings as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:20:29 +0000 (19:20 +0100)]
gtk: mark few GtkPrinterSettings as nullable

Everything that makes use of gtk_printer_settings_get should be nullable
Because the hashtable might not contain the key and there's no default value provided

4 years agogtk: mark few GtkFileChooser functions as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:11:10 +0000 (19:11 +0100)]
gtk: mark few GtkFileChooser functions as nullable
- get_file, if no file is selected returns a NULL
- get_id, if the interface doesn't implement such function returns NULL

4 years agogtk: mark gtk_flatten_list_model_get_model_for_item as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:07:13 +0000 (19:07 +0100)]
gtk: mark gtk_flatten_list_model_get_model_for_item as nullable

4 years agogtk: mark gtk_mount_operation_get_parent as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:05:33 +0000 (19:05 +0100)]
gtk: mark gtk_mount_operation_get_parent as nullable

4 years agogtk: mark gtk_list_box_get_adjustment as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:05:06 +0000 (19:05 +0100)]
gtk: mark gtk_list_box_get_adjustment as nullable

similar to its setter function

4 years agogtk: mark MenuButton::get_label/get_icon_name as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:38:56 +0000 (18:38 +0100)]
gtk: mark MenuButton::get_label/get_icon_name as nullable

4 years agogtk: mark gtk_icon_view_create_drag_icon as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:33:29 +0000 (18:33 +0100)]
gtk: mark gtk_icon_view_create_drag_icon as nullable

4 years agogtk: mark gtk_glarea_get_context as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:26:40 +0000 (18:26 +0100)]
gtk: mark gtk_glarea_get_context as nullable

4 years agotexture: Fix typo in error message
Thomas Lange [Sat, 1 Jan 2022 17:23:22 +0000 (17:23 +0000)]
texture: Fix typo in error message

4 years agogtk: mark gtk_text_mark_get_buffer as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:19:41 +0000 (18:19 +0100)]
gtk: mark gtk_text_mark_get_buffer as nullable

4 years agogtk: mark gtk_lock_button_get_permission as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:17:31 +0000 (18:17 +0100)]
gtk: mark gtk_lock_button_get_permission as nullable

like the constructor/setter

4 years agogtk: mark buildable_get_id as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:12:05 +0000 (18:12 +0100)]
gtk: mark buildable_get_id as nullable

the vfunc can return a nullable

4 years agogtk: mark MultiSelection::get_model as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:04:24 +0000 (18:04 +0100)]
gtk: mark MultiSelection::get_model as nullable

the constructor & setter takes a nullable model

4 years agogtk: mark gtk_native_get_for_surface as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:59:35 +0000 (17:59 +0100)]
gtk: mark gtk_native_get_for_surface as nullable

4 years agogtk: mark gtk_no_selection_get_model nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:56:07 +0000 (17:56 +0100)]
gtk: mark gtk_no_selection_get_model nullable

The constructor is nullable so should the getter be

4 years agogtk: fix PasswordEntry annotation
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:49:11 +0000 (17:49 +0100)]
gtk: fix PasswordEntry annotation

4 years agogtk: add nullable annotations to PopoverMenuBar/PopoverMenu
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:45:08 +0000 (17:45 +0100)]
gtk: add nullable annotations to PopoverMenuBar/PopoverMenu

The constructor/setter accepts a null as a model so should the getter

4 years agogtk: add nullable annotations for Scrollable getters
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:39:45 +0000 (17:39 +0100)]
gtk: add nullable annotations for Scrollable getters

The adjustment setters takes a nullable and so should the getters be annotated

4 years agogtk: add nullable annotation to gtk_css_section_get_file
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:31:38 +0000 (17:31 +0100)]
gtk: add nullable annotation to gtk_css_section_get_file

The constructor takes a nullable file param

4 years agogdk: add missing nullable annotations
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:03:10 +0000 (17:03 +0100)]
gdk: add missing nullable annotations

4 years agoMerge branch 'fontchooser-tweaks' into 'main'
Matthias Clasen [Fri, 31 Dec 2021 18:32:49 +0000 (18:32 +0000)]
Merge branch 'fontchooser-tweaks' into 'main'

fontchooserwidget: Avoid a crash

See merge request GNOME/gtk!4309

4 years agofontchoserwidget: Do our own face filtering
Matthias Clasen [Fri, 31 Dec 2021 14:52:48 +0000 (09:52 -0500)]
fontchoserwidget: Do our own face filtering

Pango may not do this for us, so don't rely on it.
We only show one face with a given name, and we
prefer a variable face over a non-variable one.

The check for variable faces requires new Pango
API that will be in Pango 1.52.

4 years agoMerge branch 'wip/baedert/for-master' into 'main'
Emmanuele Bassi [Fri, 31 Dec 2021 14:55:20 +0000 (14:55 +0000)]
Merge branch 'wip/baedert/for-master' into 'main'

baseline = -1 means no baseline

Closes #4385

See merge request GNOME/gtk!4307

4 years agofontchooserwidget: Revise handling of named instances
Matthias Clasen [Fri, 31 Dec 2021 14:50:47 +0000 (09:50 -0500)]
fontchooserwidget: Revise handling of named instances

Allowing to tweak the axes of named instances does
not do any harm. If we don't, we have to worry that
we need at least one non-named-instance in the face
list, and make it more obvious how to pick it out.

4 years agofontchooserwidget: Avoid a crash
Matthias Clasen [Fri, 31 Dec 2021 14:49:40 +0000 (09:49 -0500)]
fontchooserwidget: Avoid a crash

languages may be NULL, we need to be more careful here.

4 years agomaplistmodel: Cosmetics
Matthias Clasen [Fri, 31 Dec 2021 14:48:34 +0000 (09:48 -0500)]
maplistmodel: Cosmetics

4 years agoinspector: Fix coding style
Timm Bäder [Fri, 31 Dec 2021 13:41:35 +0000 (14:41 +0100)]
inspector: Fix coding style

ffs

4 years agobaseline = -1 means no baseline
Timm Bäder [Fri, 31 Dec 2021 09:42:07 +0000 (10:42 +0100)]
baseline = -1 means no baseline

Fixes #4385

4 years agoMerge branch 'fontchooser-cleanups' into 'main'
Matthias Clasen [Fri, 31 Dec 2021 04:30:04 +0000 (04:30 +0000)]
Merge branch 'fontchooser-cleanups' into 'main'

fontchooser: Stop using pangofc api

See merge request GNOME/gtk!4306

4 years agofontchooser: Stop using pangofc api
Matthias Clasen [Fri, 31 Dec 2021 03:35:08 +0000 (22:35 -0500)]
fontchooser: Stop using pangofc api

Pango now has backend-independent api for all
we need, so we can drop all the ifdefs.

4 years agoMerge branch 'bilelmoussaoui/g-i' into 'main'
Emmanuele Bassi [Thu, 30 Dec 2021 17:12:59 +0000 (17:12 +0000)]
Merge branch 'bilelmoussaoui/g-i' into 'main'

g-i: add missing nullable annotation

See merge request GNOME/gtk!4304

4 years agog-i: add missing nullable annotation
Bilal Elmoussaoui [Thu, 30 Dec 2021 16:52:53 +0000 (16:52 +0000)]
g-i: add missing nullable annotation

the constructor takes a nullable expression parameter, so should the getter be

4 years ago4.6.0
Matthias Clasen [Thu, 30 Dec 2021 14:59:38 +0000 (09:59 -0500)]
4.6.0

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Wed, 29 Dec 2021 22:17:32 +0000 (22:17 +0000)]
Update Ukrainian translation

4 years agoMerge branch 'doc-window' into 'main'
Matthias Clasen [Wed, 29 Dec 2021 17:23:16 +0000 (17:23 +0000)]
Merge branch 'doc-window' into 'main'

Document built-in actions on GtkWindow

See merge request GNOME/gtk!4297

4 years agoMerge branch 'wip/chergert/4575-fix-texthistory-selection' into 'main'
Matthias Clasen [Wed, 29 Dec 2021 14:58:53 +0000 (14:58 +0000)]
Merge branch 'wip/chergert/4575-fix-texthistory-selection' into 'main'

testsuite: ignore texthistory selection on delete/backspace

Closes #4575

See merge request GNOME/gtk!4287

4 years agodocs: Add missing star to block comment
Hofer-Julian [Wed, 29 Dec 2021 14:46:59 +0000 (15:46 +0100)]
docs: Add missing star to block comment

4 years agodoc: Fix docs of window.minimize
Hofer-Julian [Wed, 29 Dec 2021 10:12:29 +0000 (11:12 +0100)]
doc: Fix docs of window.minimize

4 years agodocs: Document built-in actions on GtkWindow
Hofer-Julian [Wed, 29 Dec 2021 10:11:26 +0000 (11:11 +0100)]
docs: Document built-in actions on GtkWindow

4 years agoMerge branch 'wip/exalm/inspector' into 'main'
Matthias Clasen [Wed, 29 Dec 2021 14:38:28 +0000 (14:38 +0000)]
Merge branch 'wip/exalm/inspector' into 'main'

inspector: Register extension on startup

See merge request GNOME/gtk!4296

4 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Wed, 29 Dec 2021 14:34:26 +0000 (14:34 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

tests: Make fontchooser test build on macOS

See merge request GNOME/gtk!4300

4 years agotests: Make fontchooser test build on macOS
Matthias Clasen [Wed, 29 Dec 2021 14:15:26 +0000 (09:15 -0500)]
tests: Make fontchooser test build on macOS

Not sure what changed here, but we want to
be able to build this without fontconfig too.

4 years agoMerge branch 'nullable' into 'main'
Matthias Clasen [Wed, 29 Dec 2021 00:28:09 +0000 (00:28 +0000)]
Merge branch 'nullable' into 'main'

popover: Add missing nullable annotation

Closes #4556

See merge request GNOME/gtk!4295

4 years agoMerge branch 'wip/baedert/for-master' into 'main'
Matthias Clasen [Wed, 29 Dec 2021 00:24:46 +0000 (00:24 +0000)]
Merge branch 'wip/baedert/for-master' into 'main'

application demo: Resolve a keyboard shortcut conflict

See merge request GNOME/gtk!4290

4 years agoinspector: Register extension on startup
Alexander Mikhaylenko [Tue, 28 Dec 2021 23:14:03 +0000 (04:14 +0500)]
inspector: Register extension on startup

4 years agoRevert "inspector: Export gtk_inspector_init"
Alexander Mikhaylenko [Tue, 28 Dec 2021 23:12:16 +0000 (04:12 +0500)]
Revert "inspector: Export gtk_inspector_init"

This reverts commit 3f5107cea56edb6c339345b2432a1a481f7f3dd1.

4 years agopopover: Add missing nullable annotation
Ian Douglas Scott [Tue, 28 Dec 2021 17:43:06 +0000 (09:43 -0800)]
popover: Add missing nullable annotation

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4556.

Looks like the other `Popover` methods are have correct nullable
annotations.

4 years agoUpdate Portuguese translation
Hugo Carvalho [Mon, 27 Dec 2021 22:53:20 +0000 (22:53 +0000)]
Update Portuguese translation

4 years agoMerge branch 'm-shinder-master-patch-90567' into 'main'
Matthias Clasen [Mon, 27 Dec 2021 15:08:48 +0000 (15:08 +0000)]
Merge branch 'm-shinder-master-patch-90567' into 'main'

gdk_content_provider_get_value() argument should have 'out' direction

See merge request GNOME/gtk!4283

4 years agoMerge branch 'get-key-capture-widget-nullable' into 'main'
Matthias Clasen [Mon, 27 Dec 2021 15:06:56 +0000 (15:06 +0000)]
Merge branch 'get-key-capture-widget-nullable' into 'main'

GtkSearchBar - Mark get_key_capture_widget() return value as nullable

See merge request GNOME/gtk!4286

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 27 Dec 2021 14:08:03 +0000 (14:08 +0000)]
Update Ukrainian translation

4 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Mon, 27 Dec 2021 13:54:27 +0000 (13:54 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

inspector: Add dnd inspection support

See merge request GNOME/gtk!4289

4 years agoapplicationwindow: Don't pass for_size < -1 to measure()
Timm Bäder [Mon, 27 Dec 2021 09:00:30 +0000 (10:00 +0100)]
applicationwindow: Don't pass for_size < -1 to measure()

If the application window is measured with for_size -1 horizontally,
this code clearly passes something lower to the parent class measure()
implementation. Only subtract the menubar_height if we're passed a
for_size > -1.

4 years agoapplication demo: Resolve a keyboard shortcut conflict
Timm Bäder [Mon, 27 Dec 2021 08:59:19 +0000 (09:59 +0100)]
application demo: Resolve a keyboard shortcut conflict

There were two menu entries side-by-side with the same keyboard shortcut

4 years agoinspector: Add dnd inspection support
Benjamin Otte [Mon, 27 Dec 2021 04:57:05 +0000 (05:57 +0100)]
inspector: Add dnd inspection support

This has lots of issues:
 * It randomly crashes when data is loading while the dnd goes away.
 * The data gets randomly reset at the wrong time
 * Can't scroll the window on Wayland
 * ...

But it's better than nothing, so better get it committed.

4 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Sun, 26 Dec 2021 23:20:34 +0000 (23:20 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

widget: Don't queue an allocate on a nonexisting parent

See merge request GNOME/gtk!4288

4 years agocss: Don't crash on invalid rotate3d()
Benjamin Otte [Sun, 26 Dec 2021 21:58:09 +0000 (22:58 +0100)]
css: Don't crash on invalid rotate3d()

4 years agoMerge branch 'main' into 'm-shinder-master-patch-90567'
m-shinder [Sun, 26 Dec 2021 21:20:33 +0000 (21:20 +0000)]
Merge branch 'main' into 'm-shinder-master-patch-90567'

# Conflicts:
#   NEWS

4 years agowidget: Don't queue an allocate on a nonexisting parent
Benjamin Otte [Sun, 26 Dec 2021 21:17:54 +0000 (22:17 +0100)]
widget: Don't queue an allocate on a nonexisting parent

No test, no idea how to trigger this reliably.

4 years agotextview: scroll insert onscreen after undo/redo
Christian Hergert [Sun, 26 Dec 2021 20:56:42 +0000 (12:56 -0800)]
textview: scroll insert onscreen after undo/redo

After performing an action such as undo/redo, we need to actually scroll
to the position where the operation occurred.

I do note that the scroll here seems to often get invalidated if it is
pages away, and we never make the full scroll. But I've seen this all over
the place elsewhere too and that needs to be handled, most likely, as a
more comprehensive fix for scrolling during line validation.

Related #4575

4 years agotexthistory: always track selection bounds
Christian Hergert [Sun, 26 Dec 2021 20:47:45 +0000 (12:47 -0800)]
texthistory: always track selection bounds

It's cheap to store the selection position, so always set it even if we
are in a user section. Otherwise, we risk not having the right position
when starting a delete action within a begin_user_action(),
end_user_action() pair.

Related #4575

4 years agotestsuite: add failing test for delete selection
Christian Hergert [Sun, 26 Dec 2021 20:46:16 +0000 (12:46 -0800)]
testsuite: add failing test for delete selection

This adds a test to expose the failure of #4575 which results in the
selection being incorrect when performing a delete as we are likely
already in a begin_user_action()/end_user_action() pair.

Related #4575

4 years agotestsuite: ignore texthistory selection on delete/backspace
Christian Hergert [Sun, 26 Dec 2021 20:43:22 +0000 (12:43 -0800)]
testsuite: ignore texthistory selection on delete/backspace

We don't need to apply these here, as it will clear the selection which is
needed for the undo. Otherwise we won't be able to test that we end up at
the right selection afterwards.

4 years agoGtkSearchBar - Mark get_key_capture_widget() return value as nullable
Sebastian Dröge [Sun, 26 Dec 2021 09:03:25 +0000 (11:03 +0200)]
GtkSearchBar - Mark get_key_capture_widget() return value as nullable

The setter allows setting NULL so this can clearly also return NULL
under normal circumstances.

Same for the corresponding API in GtkSearchEntry.

4 years agoMerge branch 'ebassi/build-fixes' into 'main'
Emmanuele Bassi [Sat, 25 Dec 2021 17:26:06 +0000 (17:26 +0000)]
Merge branch 'ebassi/build-fixes' into 'main'

build: Replace source_root()

See merge request GNOME/gtk!4281

4 years agoMerge branch 'wip/otte/gles' into 'main'
Benjamin Otte [Sat, 25 Dec 2021 15:34:01 +0000 (15:34 +0000)]
Merge branch 'wip/otte/gles' into 'main'

Fix GLES

Closes #4571

See merge request GNOME/gtk!4285

4 years agogles: Be picky abpout glGetFramebufferAttachmentParameter()
Benjamin Otte [Sat, 25 Dec 2021 14:06:12 +0000 (15:06 +0100)]
gles: Be picky abpout glGetFramebufferAttachmentParameter()

This function does not at all work like in OpenGL - if it works at all.
So make it behave accordingly.

Fixes #4571

4 years agogles: glGetTexLevelParameter() isn't supported
Benjamin Otte [Sat, 25 Dec 2021 13:46:07 +0000 (14:46 +0100)]
gles: glGetTexLevelParameter() isn't supported

4 years agogles: GLES 2 doesn't have glDrawBuffers()
Benjamin Otte [Sat, 25 Dec 2021 13:43:33 +0000 (14:43 +0100)]
gles: GLES 2 doesn't have glDrawBuffers()

So don't call it.

4 years agogl: Change gdk_gl_context_check_version()
Benjamin Otte [Sat, 25 Dec 2021 13:14:52 +0000 (14:14 +0100)]
gl: Change gdk_gl_context_check_version()

Instead of just passing major/minor, pass them twice, once for GL and
once for GLES. This way, we don't need to check for GL and GLES
separately.

If something is supported unconditionally, passing 0/0 works fine.

That said, I'd like to group the arguments somehow, because otherwise
it's just a confusing list of numbers - but I have no idea how to do
that.

4 years agoglcontext: Use different log levels for GL debug
Benjamin Otte [Sat, 25 Dec 2021 13:41:20 +0000 (14:41 +0100)]
glcontext: Use different log levels for GL debug

We want critical GL debug messages to be critical, so that the testsuite
sudokus itself when they appear.

This is relevant in particular for GLES warnings in the GLES runner,
because its warnings can cause crashes on GL drivers less forgiving than
Mesa.

Related: #4571

4 years agoApply 1 suggestion(s) to 1 file(s)
Emmanuele Bassi [Sat, 25 Dec 2021 13:29:07 +0000 (13:29 +0000)]
Apply 1 suggestion(s) to 1 file(s)

4 years agoFix: Set direction for `value` parameter
m-shinder [Sat, 25 Dec 2021 10:04:43 +0000 (10:04 +0000)]
Fix: Set direction for `value` parameter

4 years agobuild: Remove deprecated get_pkgconfig_variable()
Emmanuele Bassi [Fri, 24 Dec 2021 15:55:26 +0000 (15:55 +0000)]
build: Remove deprecated get_pkgconfig_variable()

Replace it with `get_variable(pkgconfig:...)`.

4 years agobuild: Replace deprecated 'gui_app'
Emmanuele Bassi [Fri, 24 Dec 2021 15:51:11 +0000 (15:51 +0000)]
build: Replace deprecated 'gui_app'

Use `win_subsystem: 'windows'` instead.

4 years agobuild: Replace source_root()
Emmanuele Bassi [Fri, 24 Dec 2021 15:48:06 +0000 (15:48 +0000)]
build: Replace source_root()

Use project_source_root(), which replaces the deprecated source_root().

4 years agosizerequest: Remove critical warning for now
Matthias Clasen [Thu, 23 Dec 2021 21:59:26 +0000 (16:59 -0500)]
sizerequest: Remove critical warning for now

At last as long as widgets like GtkFlowBox and
GtkGrid still trigger this, it is not a great
idea to have this warning in a stable release.
So remove it for 4.6

4 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Wed, 22 Dec 2021 19:45:53 +0000 (19:45 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

gl: Clear current when destroying current's surface

Closes #4554

See merge request GNOME/gtk!4279

4 years agogl: Clear current when destroying current's surface
Benjamin Otte [Wed, 22 Dec 2021 18:49:13 +0000 (19:49 +0100)]
gl: Clear current when destroying current's surface

When destroying the EGLSurface or GLXDrawable of a GdkSurface, make sure
the current context is not still bound to it.

If it is, clear the current context.

Fixes #4554

4 years agoMerge branch 'wip/baedert/for-master' into 'main'
Matthias Clasen [Wed, 22 Dec 2021 16:54:18 +0000 (16:54 +0000)]
Merge branch 'wip/baedert/for-master' into 'main'

label: Fix get_natural_wrap_mode() precondition check

See merge request GNOME/gtk!4278

4 years agolabel: Fix get_natural_wrap_mode() precondition check
Timm Bäder [Wed, 22 Dec 2021 16:38:05 +0000 (17:38 +0100)]
label: Fix get_natural_wrap_mode() precondition check

4 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 22 Dec 2021 14:05:50 +0000 (14:05 +0000)]
Update Portuguese translation

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Wed, 22 Dec 2021 12:52:52 +0000 (12:52 +0000)]
Update Ukrainian translation

4 years agoMerge branch 'fix_typos' into 'main'
Timm Bäder [Wed, 22 Dec 2021 08:08:38 +0000 (08:08 +0000)]
Merge branch 'fix_typos' into 'main'

Fix minor typo

See merge request GNOME/gtk!4275

4 years agoFix minor typo
Yuri Chornoivan [Tue, 21 Dec 2021 21:42:12 +0000 (23:42 +0200)]
Fix minor typo

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Tue, 21 Dec 2021 21:36:53 +0000 (21:36 +0000)]
Update Ukrainian translation

4 years agoMerge branch 'high-contrast-4' into 'main'
Matthias Clasen [Tue, 21 Dec 2021 19:20:34 +0000 (19:20 +0000)]
Merge branch 'high-contrast-4' into 'main'

gdk/wayland: Support new `high-contrast` key

See merge request GNOME/gtk!4271